package com.adcc.ags.cgw.configuration;

import com.fasterxml.jackson.annotation.JsonProperty;
import jersey.repackaged.com.google.common.collect.Maps;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * 作业配置工厂
 */
public class JobFactory {

    // URL
    private String url;

    // Job
    @NotNull
    private Map<String,String> job = Maps.newConcurrentMap();

    @JsonProperty("url")
    public String getUrl() {
        return url;
    }

    @JsonProperty("url")
    public void setUrl(String url) {
        this.url = url;
    }

    @JsonProperty("job")
    public Map<String,String> getJob(){
        return job;
    }

    @JsonProperty("job")
    public void setJob(Map<String,String> job){
        this.job = job;
    }
}
